﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YasharEl.Infrastructure.Configuration;
using YasharEl.Infrastructure.WorkflowModel.Management;

namespace YasharEl.Infrastructure.WorkflowModel.Configuration
{
    public partial class WorkflowDefinitionLoaderTypeCallbackValidatorClass
    {
        public static void WorkflowDefinitionLoaderType(object value)
        {
            Type type = value as Type;
            if (type != null)
            {
                new ImplementorValidator<IWorkflowDefinitionLoader, InvalidSystemConfigurationException>()
                        .ValidateType(type, "WorkflowDefinitionLoaderType");
            }
        }
    }
}
